<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
		<load href="__JS__/menu.js" />
		<load href="__JS__/leftmenubar.js" />
		<load href="__CSS__/header.css" />
		<load href="__CSS__/footer.css" />
		<link rel="stylesheet" href="__JS__/kindeditor/themes/default/default.css" />
		<link rel="stylesheet" href="__JS__/kindeditor/plugins/code/prettify.css" />
		<script charset="utf-8" src="__JS__/kindeditor/kindeditor.js"></script>
		<script charset="utf-8" src="__JS__/kindeditor/lang/zh_CN.js"></script>
		<script charset="utf-8" src="__JS__/kindeditor/plugins/code/prettify.js"></script> 
		<script>
			KindEditor.ready(function(K) {
				var editor1 = K.create('textarea[name="text"]', {
					cssPath : '__JS__/kindeditor/plugins/code/prettify.css',
					uploadJson : '__JS__/kindeditor/php/upload_json.php?no={$no}',
					fileManagerJson : '__JS__/kindeditor/php/file_manager_json.php?no={$no}',
					allowFileManager : true,
					afterCreate : function() {
						var self = this;
						K.ctrl(document, 13, function() {
							self.sync();
							K('form[name=discuss]')[0].submit();
						});
						K.ctrl(self.edit.doc, 13, function() {
							self.sync();
							K('form[name=discuss]')[0].submit();
						});
					}
				});
				prettyPrint();
			});
		</script>
		<load href= "__JS__/jshelper.js" /> 
		<script type="text/JavaScript">
			function discussdelete(id,courseid){
				if (confirm("你确定要删除吗")==true) {
					//posthelper([["id",id],],'__URL__/discussdelete');
					postwith('__URL__/discussdelete',{id:id,courseid:courseid});
				}
			}
		
					window.onload=show;
		
		</script>
		<load href="__JS__/jQuery/jquery.js" />
       	<load href="__JS__/jQuery/jquery.form.js" />
		<script type="text/JavaScript">
        $(function(){
            $('#form1').ajaxForm({
                //beforeSubmit:  function(){alert("before");},  // pre-submit callback
                success:       complete,  // post-submit callback
                error:function(){alert("error");},
                dataType: 'json'
            });
            
            function complete(data){
                if (data.status==1)
                {
                	window.location=window.location.href;
                }else{
                    $('#result').html(data.info).show();
                }
            }
        });
        </script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<layout name="Auth:header" />
<div class="nowposition">
	<a href='__APP__/index/index' class="nowpositionhref">主页</a>>
	<a href='__URL__/index' class="nowpositionhref">院系展示</a>>
	<a href='__URL__/custom1/id/{$departmentid}' class="nowpositionhref">{$dname}</a>
</div>
<layout name="Auth:Courseleftmenu" />
		<div class="custom1" >
			<table width="60%" style="background-color:#CCCCCC">
				<tr>
					<td width="60%">
					课程总数（<a href='__URL__/department/id/{$a.departmentid}'>共{$count}个</a>）
					</td>
				</tr>
			</table>
			<br><br>
			<table style="width:67%; margin-left:30px;">
				<tr>
					<td style="text-align:center; width:100%;"><h2>院系简介</h2></td>
				</tr>
			</table>
			<hr style="width:85%; margin-left:-3px; " />
			<table style="font-size:10px; color:#A0A0A0; text-align:center; " border="0" cellpadding="0px" cellspacing="0">
				<tr>
					<td>
						作者：{$a.nname}
					</td>
					<td>
						发布时间：{$a.time}
					</td>
					<td>
						浏览次数：{$a.pv}
					</td>
				</tr>
			</table>
			<table style="width:70%; margin-left:-5px;"  align="center">
				<tr>
					<td>{$a.text}</td>
				</tr>
			</table>
			
			<div class="green-black" align="right" style="width:86%; margin-top:7px;">{$page}</div>
</body>
</html>